 abstract class Text {
    public abstract void draw();
}

 class Rect extends Text{
     @Override
     public void draw() {
         System.out.println("矩形");
     }
 }
public class Shape{
    public static void drowMap(Text text){
        text.draw();
    }

    public static void main(String[] args) {
       Text text = new Rect();
       drowMap(text);

    }
}
